package com.zb.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/2/20 0020
 **/
@Data
@ApiModel("商家企业权限对象")
public class CustomerAuthorVo {
    @NotNull(message = "系统权限菜单ID不能为空")
    @ApiModelProperty(value = "系统权限菜单ID", required = true)
    private Long authorId;

    @NotNull(message = "父级权限菜单ID不能为空")
    @ApiModelProperty(value = "父级权限菜单ID", required = true, example = "0")
    private Long parentAuthorId;

    @NotNull(message = "商家权限状态不能为空")
    @ApiModelProperty(value = "商家权限状态：false-正常，true-禁用", required = true, example = "false")
    private Boolean status;

    @ApiModelProperty(value = "权限详细功能对象")
    private List<CustomerAuthorVo> authorVos;
}
